package java006;

import java.util.ArrayList;
import java.util.HashMap;

public class zuoye05 {
	public static void main(String[] args) {
		int[] arr1 = {1,2,3};
		int[] arr2 = {3,4,5,2};
		HashMap<Integer,Integer> map = new HashMap<>();
		for (int num: arr1){
			map.put(num, map.getOrDefault(num, 0)+1);
		}
		for (int num: arr2){
			map.put(num, map.getOrDefault(num, 0)+1);
		}
		ArrayList<Integer> result = new ArrayList<>();
		for(Integer key: map.keySet()){
			if(map.get(key) == 1){
				result.add(key);
			}
		}
		System.out.println(result);
	}
}